<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../03_layout/CSS/reset.css">
    <title>Document</title>
    <style>
        ul{
            width: 500px;
            height: 350px;
            margin: 50px auto;
            /* 为ul开启相对定位，目的是使ul中的pointer能相对它定位 */
            position: relative;
        }
        /* 让照片重叠 */
        .img-list li{
            position: absolute;
        }
        /* 通过修改元素的层级来显示指定的图片 */
        .img-list li:nth-child(4){
            z-index: 1;
        }

        .pointer{
            position: absolute;
            z-index: 2;
            left: 15px;
            bottom: 15px;
        }
        .pointer a{
            /* 设置元素向左浮动 */
            float: left;

            width: 10px;
            height: 10px;
            margin: 0px 3px;
            background-color: rgba(255,255,255,.3);
            border-radius: 50%;
            /* 将背景颜色值设置到内容区，边框和内边距不再有背景颜色 */
            background-clip: content-box ;
            border: 2px solid transparent;
        }

        .pointer a.active,
        .pointer a:hover
        {
            background-color: #fff;
            border: rgba(255,255,255,.3) 2px solid;
            z-index: 2;
        }


    </style>
</head>
<body>
    <ul class="img-list">
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园1.JPG" alt=""></a></li>
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园2.JPG" alt=""></a></li>
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园3.JPG" alt=""></a></li>
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园4.JPG" alt=""></a></li>
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园5.JPG" alt=""></a></li>
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园6.JPG" alt=""></a></li>
        <li><a href="javascript:;"><img width="500px" height="350px" src="./img/詹园7.JPG" alt=""></a></li>
    
        <div class="pointer">
            <a class="active" href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
        </div>
    
    
    </ul>
</body>
</html>